// const utils = require('../utils')
// const db = require('./index')

// exports.login = async function (params) {
  
//   const {username, password} = params
//   const sql = `select * from user where username = ${username}`
//   const data = await db(sql, [id])
//   return data

  
//   const sql = `select * from about where id = ${id}`
//   let data = await db(sql)
//   const sql = `insert into news(id,title,detail,created_at,updated_at) VALUES (0,?,?,?,?);`
//   const list = await db(sql, [title, detail, new Date(), new Date()])
//   return list
// }